package com.zgc.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.zgc.dto.CountSaleDto;
import com.zgc.entity.Orders;

import java.util.List;
import java.util.Map;

public interface OrderService extends IService<Orders> {
    /**
     * 用户下单
     * @param orders
     */
    public Long submit(Orders orders);
    //最近一周可视化图表展示
    List<CountSaleDto> countAmonutByWeek();
    //最近一个月可视化图表展示
    List<CountSaleDto> countAmonutByMonth();
    List<Map> countAmonutByDish();
}